namespace Expect.Documentation.Base_concepts
{
    using System;
    using Expect.Core;
    using Expect.Core.Fixtures;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    
    
    // This file is generated, if you modify content you will lose your modifications when the generator will regenerate the file
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Expect.Core", "0.5.2.0")]
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [TestClass()]
    [SpecificationContainerAttribute(Name="Selecting your unit test framework", Path="\\Base concepts\\Selecting your unit test framework.expect")]
    public partial class SelectingYourUnitTestFrameworkContainer : Expect.Core.AbstractSpecificationContainer
    {
        
        partial void PrepareContextExtension();
        
        partial void BeforeInitExtension();
        
        partial void AfterInitExtension();
        
        partial void BeforeTeardownExtension();
        
        partial void AfterTeardownExtension();
        
#line 1 "Selecting your unit test framework.expect"
#line hidden
        
        public override void InitializeContext()
        {
            base.InitializeContext();
            PrepareContextExtension();
        }
        
        [TestInitialize()]
        public virtual void SelectingYourUnitTestFrameworkClass_TestInit()
        {
            InitializeContext();
            BeforeInit();
            BeforeInitExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterInit();
            AfterInitExtension();
        }
        
        [TestCleanup()]
        public virtual void SelectingYourUnitTestFrameworkClass_TestTeardown()
        {
            BeforeTeardown();
            BeforeTeardownExtension();

            SpecificationDefinition spec = new SpecificationDefinition();
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }

            AfterTeardown();
            AfterTeardownExtension();
        }
        
        // TestComment
        [TestMethod()]
        public virtual void SelectingYourUnitTestFramework()
        {
            SpecificationDefinition spec = new SpecificationDefinition();
            Get_SelectingYourUnitTestFramework(spec);
            spec.CalculateResult();

            if ((spec.Status.Success.HasValue == false))
            {
                Assert.Inconclusive(spec.GetMessageForInconclusiveResult());
            }
            if ((spec.Status.Success.Value == false))
            {
                Assert.Fail(spec.GetMessageForFailedResult());
            }
        }
        
        [SpecificationProviderAttribute(Name="Selecting your unit test framework")]
        public virtual void Get_SelectingYourUnitTestFramework(Expect.Core.SpecificationDefinition spec)
        {
            spec.Context = Context;
            spec.Name = "Selecting your unit test framework";
            FixtureDefinition fixture = null;

            fixture = spec.AddFixture<DescriptionFixture>();
#line 1
            fixture.WithRow("Writing another test runner would not be efficient, for us to write Expect, and f" +
                    "or you to integrate in your development platform.");
#line 2
            fixture.WithRow("To let you using your prefered tool, Expect wrap specifications in unit tests wit" +
                    "h the framework of your choice. Currently, MsTest and NUnit are supported, MsTes" +
                    "t beeing the default.");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 4
            fixture.WithRow("To select your unit test framework you must add an application configuration file" +
                    " to your test assembly.");
#line hidden
            fixture.EndRun();

            fixture = spec.AddFixture<DescriptionFixture>();
#line 6
            fixture.WithRow("!For example, to generate tests for NUnit, put the following to your configuratio" +
                    "n file:!");
#line 7
            fixture.WithRow("{{");
#line 8
            fixture.WithRow("<configSections>");
#line 9
            fixture.WithRow("  <section name=\"expect\" type=\"Expect.Core.ExpectConfigurationSection, Expect.Cor" +
                    "e\"/>");
#line 10
            fixture.WithRow("</configSections>");
#line 11
            fixture.WithRow("<expect>");
#line 12
            fixture.WithRow("  <codegen unitTestProvider=\"NUnit\"/>");
#line 13
            fixture.WithRow("</expect>");
#line 14
            fixture.WithRow("}}");
#line hidden
            fixture.EndRun();

        }
    }
}
